import Vue from 'vue'
import VueRouter from 'vue-router'
import BlogShow from "@/components/BlogShow";
import BlogSave from "@/components/BlogSave";
import BlogList from "@/components/BlogList";
import CategoryList from "@/components/CategoryList";
import CategorySave from "@/components/CategorySave";
import Login from "@/components/Login";
import BlogPersonList from "@/components/BlogPersonList";
import MavonEditorTest from "@/components/MavonEditorTest";

Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
        { path: '/blog/detail/:blogId/:flag', component: BlogShow },
        { path: '/blog/save/:blogId', component: BlogSave },
        { path: '/', component: BlogList },
        { path: '/blog/person/list', component: BlogPersonList },
        { path: '/category/list', component: CategoryList },
        { path: '/category/save/:cgId', component: CategorySave},
        { path: '/login', component: Login},
        { path: '/editor', component: MavonEditorTest},
    ]
});

export default router;
